<?php

/**
 * Created by Reliese Model.
 */

namespace App\Models;

use App\BaseModel as Eloquent;

/**
 * Class ActiveRecord
 * 
 * @property int $id
 * @property int $hall_id
 * @property int $user_id
 * @property string $username
 * @property int $template_id
 * @property \Carbon\Carbon $date
 * @property int $deposit_amount
 * @property int $amount
 * @property int $status
 * @property int $active_id
 * @property string $active_name
 * @property string $detail
 * @property int $withdraw_require
 * @property string $remark
 * @property \Carbon\Carbon $apply_time
 * @property \Carbon\Carbon $deal_time
 * @property \Carbon\Carbon $created_at
 * @property \Carbon\Carbon $updated_at
 *
 * @package App\Models
 */
class ActiveRecord extends Eloquent
{
	protected $table = 'active_record';

	protected $casts = [
		'hall_id' => 'int',
		'user_id' => 'int',
		'template_id' => 'int',
		'deposit_amount' => 'int',
		'amount' => 'int',
		'status' => 'int',
		'active_id' => 'int',
		'withdraw_require' => 'int'
	];

	protected $dates = [
		'date',
		'apply_time',
		'deal_time'
	];

	protected $fillable = [
		'hall_id',
		'user_id',
		'username',
		'template_id',
		'date',
		'deposit_amount',
		'amount',
		'status',
		'active_id',
		'active_name',
		'detail',
		'withdraw_require',
		'remark',
		'apply_time',
		'deal_time'
	];
}
